#ifndef _TIME_H
#define _TIME_H
#include "sys.h"



typedef struct encode_t_{
    uint8_t Key_num;    //0:left 1:right  2:key_C
    uint8_t Key_val;    //[AB]:0~255  [C]1:pressed
}Encode_TypeDef;

extern Encode_TypeDef Encode;
extern TIM_HandleTypeDef htim4;

void MX_TIM4_Init(void);
void TIME4_GPIO_Config(void);
void GetEncodeNum(void);
void DisplayEC11num(void);










#endif

